package com.example.fruitdemo.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class OrderDto {
    private Long id;
    private String receiver;
    private String address;
    private String payway;
    private Integer number;
    private Double goodprice;
    private Double transpay;
    private double totalprice;
    private Integer status;
    private Long userid;
    private Long receiverid;
    //新添加的属性
    private List<GoodPay> goodlist;

    @TableField(value = "createtime",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private LocalDateTime createtime;

    @TableField(value = "updatetime",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private LocalDateTime updatetime;
}
